<!-- 体征里2级路由IO页面 -->
<template>
  <div id="SignIo">
    <div class="link-list center-block">
      <router-link v-for="(item,index) in list"
                   :key="item.value" :to="{path:item.path,query:{item:5,in:1,ind:index}}"
                   :class="{'router-link-exact-active':ind == index}"
                   @click.native="changeBgc(index)">
        {{item.label}}
      </router-link>
    </div>
    <router-view></router-view>
  </div>
</template>
<script>
 
  export default {
    data() {
      return {
        list: [
          { path: '/physicalSignPage/signsIo/signsIoSubSurface', label: 'IO-时间轴' },
          { path: '/physicalSignPage/signsIo/signsIoSubChart', label: 'IO-趋势图' },
        ],
        ind: '0',
      }
    },
    created() {
    
    },
    mounted() {
      if (this.$route.query.ind) {
        this.ind = this.$route.query.ind;
      } else {
        this.ind = 0;
      }
    },
    methods: {
      changeBgc(index) {
        this.ind = index;
      },
    }
  }
</script>
<style scoped>
  .link-list {
    position:absolute;
    top:25px;
    left:500px;
    height: 30px;
    line-height: 30px;
    margin-bottom: 20px;
    padding-left: 45px;
  }

    .link-list a {
      font-size: 16px;
      display: inline-block;
      margin-right: 15px;
      color: #666;
    }

      .link-list a:after {
        display: inline-block;
        content: '';
        width: 1px;
        height: 20px;
        background-color: #ccc;
        margin-left: 10px;
        vertical-align: middle;
      }

      .link-list a:last-child:after {
        width: 0;
      }

      .link-list a.router-link-exact-active {
        color: #11a7f3;
      }
      @media screen and (max-width: 768px) {
        .link-list {
    position:inherit;
  }
}
@media screen and (max-width: 425px) {
}
</style>
